package com.kof.userregister.service.impl;

import java.util.Date;

import javax.annotation.Resource;



import org.springframework.stereotype.Service;

import com.kof.userregister.dao.UserDao;
import com.kof.userregister.entity.User;
import com.kof.userregister.service.UserService;

@Service
public class UserServiceImpl extends BaseServiceImpl<User,Integer> implements UserService{

	@Resource
	private UserDao userDao;
	
	@Resource
	public void setBaseDao(UserDao userDao) {
		super.setBaseDao(userDao);
	}
	
	@Override
	public Integer saveUser(User user) {
		user.setRegDate(new Date());	
		return userDao.save(user);
	}

}
